home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 17
/
Hot Mix 17.iso
/
HM17_SGI
/
research
/
examples
/
demo
/
demotext
/
widgets.txt
< prev
Wrap
Text File
|
1997-07-08
|
3KB
|
95 lines
WELCOME TO WIDWIZ DEMO
This demo builds a widget application that uses
at least one instance of each type of widget
available in IDL 5.0.
When you start the demo, a base widget with
three buttons appears. Click the <<NEXT>>
button to create a second base widget and
add example widgets to the base one at a time.
You can also click <<SKIP>> to add all the
widgets at once. (If you are reading this text,
you have already done one of the above.)
When you are finished with the demo, click
the <<QUIT>> button to dismiss the base widgets.
MENU OPTIONS
------------
File Menu:
Select "Quit" to close the "All Widgets"
application. You will still need to click the
<<QUIT> button on the first base widget to
exit the demo.
About Menu:
Select "About Widgets" to display this text.
FEATURES OF THE WIDGET DEMO
---------------------------
The following widgets are included in the widget
demo application:
<<Style Droplist>>
Click on the arrow at the right of the widget
to display a list of options. Select "wire",
"solid", or "lego solid" from the list to change
the appearance of the surface displayed in the
draw widget.
<<Rotation Sliders>>
Change the position of the sliders to rotate the
surface displayed in the draw widget around any
one of the three axes.
<<Message Button>>
Click on the "Message" button to display a modal
dialog message window. Click "OK" to dismiss the
window.
<<Surface Color Scrolling List>>
Click the up- and down-arrows to display different
portions of the scrolling list. Select an item in
the list to change the color of the surface
displayed in the draw widget.
<<Status Label and Editable Text Widget>>
Click in the text field and use normal editing
procedures to change the text.
<<Table Widget>>
The table widget displays the values of each
element in the data array that is rendered in
the draw widget.
You can edit the values in the table widget by
clicking in a table cell, deleting the existing
value, and entering a new value. (In this demo,
values are limited to the range 0 to 9.) Notice
how the surface displayed in the draw widget
changes as you alter values in the draw widget.
<<Draw Widget>>
A shaded surface rendering of the data shown in
the table widget is displayed in the draw widget.
Most of the widget controls discussed above affect
the look of the displayed surface. In addition,
you can rotate the surface directly by positioning
the mouse in the draw widget, holding down the left
mouse button, and dragging the mouse. Notice that
the values of the rotation sliders are updated as
you rotate the surface interactively.